package com.i5tong.greendaodemo;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;

import com.i5tong.greendaodemo.dao.DaoSession;
import com.i5tong.greendaodemo.dao.UserDao;
import com.i5tong.greendaodemo.utils.DbUtils;


public class MainActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        DaoSession daoSession = DbUtils.getDaoSession(this, "database_name.db");
        UserDao userDao = daoSession.getUserDao();
    }



}
